<template>
    <div>
        <table>
            <tr v-for='i in list' :key="i.id">
                <td >{{i.title}}</td>
                <td v-if='i.stutas ==2'>审核中</td>
                <td v-else-if='i.stutas ==3'>审核中</td>
                <td v-else-if='i.stutas ==1 && i.next_approver==0'>审核失败，查看
                    <router-link :to="{name:'apply_for3',query:{'eid':i.id,'wid':i.workfid}}">修改</router-link>    
                </td>
                
                <td v-else>待审核</td>
            </tr>
        </table>
    </div>
</template>
<script>
import axios from 'axios'
export default {
    data(){
        return{
            list:[],
            uid:localStorage.getItem('uid')
        }
    },
    methods: {
        getmytask(){
        
            axios.get('/examineonelist?userid='+this.uid).then(res=>{
                console.log(res);
                this.list = res.data.list
            })
        }
    },
    mounted() {
        this.getmytask()
    },
}
</script>
<style lang="">
    
</style>